package com.example.fy.coolweather.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by fy on 2016/5/10.
 */
public class CoolWeatherOpenHelper extends SQLiteOpenHelper {

    public static final String CREATE_AREA = "create table Area(" +
            "id integer primary key autoincrement," +
            "areaId text," +
            "nameEn text," +
            "nameCn text," +
            "distinctEn text," +
            "distinctCn text," +
            "proEn text," +
            "proCn text," +
            "nationEn text," +
            "nationCn text)";

    public CoolWeatherOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_AREA);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
